package com.uit3j.cloud.api.product.feign;

import com.uit3j.cloud.api.product.bo.EsHotSearchBO;
import com.uit3j.cloud.common.feign.FeignInsideAuthConfig;
import com.uit3j.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author tan
 * @date 2020/11/12
 */
@FeignClient(value = "uit3jcloud-product",contextId = "hotSearch-es")
public interface HotSearchFeignClient {

    /**
     * 通过hotSearchId热搜id
     * @param hotSearchId hotSearchId
     * @return es保存的热搜信息
     */
    @GetMapping(value = FeignInsideAuthConfig.FEIGN_INSIDE_URL_PREFIX + "/insider/product/loadEsHotSearchBO")
    ServerResponseEntity<EsHotSearchBO> loadEsHotSearchBO(@RequestParam("hotSearchId") Long hotSearchId);


}
